package com.qf.agro.pojo.device;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @company：千锋教育
 * @author：zhy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("sa_agro_smartdevice_data_logs")
public class SmartDeviceDataLogs implements Serializable {


    @TableId
    private Long id;
    private Long deviceId;
     @Excel(name="设备名称",width = 30)
    private String deviceName;
    private Long typeId;
     @Excel(name="硬件类型",width = 20)
    private String typeName;
    private Long facilitiesId;
      @Excel(name="农业设施名称",width = 30)
    private String facilitiesName;
     @Excel(name="返回code")
    private String resultCode;
    @Excel(name = "返回结果说明", width = 10)
    private String resultMessage;
    private String resultData;
    @Excel(name = "数据", width = 10)
    private String resultDataValue;
    @Excel(name = "时间", exportFormat = "yyyy-MM-dd hh:mm:ss", width = 30)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
